package com.yc.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.jmx.export.annotation.ManagedResource;
import org.springframework.stereotype.Component;

/**
 * @author zwei
 * @create 2024-08-07 15:35
 */
@Data
//@ManagedResource(objectName = "b:type=Oprecord")
//@Component
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode  // 重写equals和hashcode方法
@TableName("oprecord")
public class Oprecord {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer accountid;
    private double opmoney;
    @TableField(fill = FieldFill.INSERT)    // 插入时填充
    private String optime;
    private OpType optype;  //枚举类型
    private Integer transferid;

}
